package com.eva.cms.biz.article.vo;

import com.eva.service.cms.vo.CmsArticleCategoryVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@ApiModel("文章简要视图对象")
public class CmsArticleProfileVO implements Serializable {

    @ApiModelProperty(value="文章唯一标识")
    private String uid;

    @ApiModelProperty(value="文章标题")
    private String title;

    @ApiModelProperty(value="内容摘要")
    private String contentDigest;

    @ApiModelProperty(value="关键字")
    private String keywords;

    @ApiModelProperty(value="文章封面图")
    private String cover;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value="发布时间")
    private Date updatedAt;

    @ApiModelProperty(value="栏目列表")
    private List<CmsArticleCategoryVO> categories;

    @ApiModelProperty(value="所属标签名称")
    private List<String> tags;

    @JsonIgnore
    @ApiModelProperty("栏目ID集")
    private String categoryIds;

    @JsonIgnore
    @ApiModelProperty("标签ID集")
    private String tagIds;

}
